-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add desktop entries action #119
base: master
Are you sure you want to change the base?
Conversation
1bcc819
to
cd5b4dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure but, this might break pop-shell front end.
This is indeed causing some breakage in the right-click menu for desktop entries. The actions are not properly formatted (I'm seeing the new-window
action identifier instead of the Open a New Window
name key), and none of the menu options can be clicked (which means they can't be selected at all.)
I think it would be better to have desktop entries ans actions activated by pop-launcher as mentioned here #118 I will try to tackle this soon, and make a PR in pop-shell in parallel. |
cd5b4dd
to
b33c9b3
Compare
I updated the desktop entries plugin so it now take care of launching the entries, actions and gpu preferences. Still need to figure out how to properly handle GPU selection for nvidia though. I don't have an nvidia machine so I won't be able to test this. Should I implement something like this: https://gitlab.freedesktop.org/hadess/switcheroo-control/-/blob/master/src/switcheroo-control.c#L285 ? Could you point me in the right direction @mmstick. Also this will require to remove all the desktop entry related code in pop-shell. I'll send the PR soon. |
b33c9b3
to
d0622a4
Compare
@mmstick I have started to implement the Gpu switching logic to be able to launch desktop entries with the appropriate gpu (without relying on gnome stuff). Also launching DE without the gnome helpers requires to implement a small part of the destkop entry spec. I have started to tackle this but it's not completely ready yet. This is definitely no ready yet but the more I progress on this the more it feels like the desktop entry launching should reside in a separate crate. I would totally understand if you don't want to change the current behavior of pop-launcher but I'd like to have your take on this, I don't want to spend more time on this if you are not considering to merge whenever it will be ready. Pros:
|
Switcheroo is a great guide for launching with hybrid graphics support. It's fine to have a separate crate for launching desktop entries. There's multiple locations where it'd make sense to have that, outside of the pop-launcher. |
I did took some inspiration from switcheroo, the main difference is that my implementation does not exposes gpu info on dbus, I guess it's fine ? I was able to get my hand on a hybrid graphics nvidia graphics laptop so I should be able to test it. |
This add the ability to use desktop entries actions.
Not sure but, this might break pop-shell front end. Maybe I should add another variant to the
PluginResponse
instead of usingContext
?Also I am wondering if we should implement activation for destkop entries directly in the launcher or still delegate to clients ? (see: #118).